package com.lrh.just.po;

import java.io.Serializable;

public class ProdImgRelation implements Serializable {
    private Integer relaSeq;

    private Integer imgId;

    private String prodId;

    private static final long serialVersionUID = 1L;

    public Integer getRelaSeq() {
        return relaSeq;
    }

    public void setRelaSeq(Integer relaSeq) {
        this.relaSeq = relaSeq;
    }

    public Integer getImgId() {
        return imgId;
    }

    public void setImgId(Integer imgId) {
        this.imgId = imgId;
    }

    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId == null ? null : prodId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProdImgRelation other = (ProdImgRelation) that;
        return (this.getRelaSeq() == null ? other.getRelaSeq() == null : this.getRelaSeq().equals(other.getRelaSeq()))
            && (this.getImgId() == null ? other.getImgId() == null : this.getImgId().equals(other.getImgId()))
            && (this.getProdId() == null ? other.getProdId() == null : this.getProdId().equals(other.getProdId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRelaSeq() == null) ? 0 : getRelaSeq().hashCode());
        result = prime * result + ((getImgId() == null) ? 0 : getImgId().hashCode());
        result = prime * result + ((getProdId() == null) ? 0 : getProdId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", relaSeq=").append(relaSeq);
        sb.append(", imgId=").append(imgId);
        sb.append(", prodId=").append(prodId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}